home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Graphics / StScan / stscan.h < prev    next >
C/C++ Source or Header  |  1997-08-11  |  2KB  |  89 lines

  1. /*
  2. **      $VER: stscan.h 3.00D (11.8.97)
  3. **
  4. **      STScan main module (Header)
  5. **
  6. **      Written by Frank-Christian Kruegel, Henning Peters, Andreas R. Kleinert
  7. **      GNU General Public License V2
  8. */
  9.  
  10. #define __USE_SYSBASE
  11.  
  12. #include <exec/types.h>
  13. #include <exec/exec.h>
  14. #include <intuition/intuition.h>
  15. #include <intuition/screens.h>
  16. #include <intuition/intuitionbase.h>
  17. #include <dos/dos.h>
  18. #include <dos/dosextens.h>
  19. #include <graphics/rastport.h>
  20. #include <graphics/gfxmacros.h>
  21. #include <graphics/gfxbase.h>
  22. #include <graphics/displayinfo.h>
  23. #include <devices/scsidisk.h>
  24.  
  25. #include <libraries/reqtools.h>
  26. #include <proto/reqtools.h>
  27.  
  28. #include <proto/exec.h>
  29. #include <proto/dos.h>
  30. #include <proto/intuition.h>
  31. #include <proto/graphics.h>
  32.  
  33. #include <stdlib.h>
  34. #include <stdio.h>
  35. #include <string.h>
  36.  
  37. #include <math.h>
  38.  
  39. #include "pixelop.h"
  40. #include "vectorop.h"
  41. #include "localop.h"
  42. #include "imginout.h"
  43. #include "scnplane.h"
  44.  
  45. #define ADDLIN 6
  46.  
  47. typedef struct DefWindow /*might be scanner dependent*/
  48. {  ULONG dummy1;
  49.    UWORD dummy2;
  50.    UWORD wpsize;
  51.    UBYTE winnr;
  52.    UBYTE dummy3;
  53.    UWORD resx;
  54.    UWORD resy;
  55.    UWORD cornerx;
  56.    UWORD cornery;
  57.    UWORD width;
  58.    UWORD height;
  59.    UBYTE dummy4;
  60.    UBYTE threshold;
  61.    UBYTE size;     /* temporary storage, ignored by scanner */
  62.    UBYTE halftone;
  63.    UBYTE bitspixel;
  64.    UBYTE dummy5;
  65.    UWORD dummy6;
  66.    ULONG dummy7;
  67. } DefWindow;
  68.  
  69.  
  70. /* externals from stscan.c */
  71.  
  72. extern struct Window *win;
  73. extern struct IOStdReq *diskreq;
  74. extern struct ViewPort *vp;
  75. extern struct RastPort *rp;
  76. extern ULONG memneed;
  77. extern UWORD memwidth, memheight, membpl;
  78. extern UBYTE memgray;
  79. extern UBYTE *memptr;
  80. extern UBYTE *bufptr;
  81. extern UWORD screenwidth,screenheight,viewwidth,viewheight;
  82. extern ULONG viewoffset,lineoffset;
  83. extern UBYTE numcols;
  84. extern struct DefWindow winpar;
  85.  
  86. extern UBYTE bitval[];
  87. extern UBYTE invbitval[];
  88. extern UBYTE revbit[];
  89.